<?php
/**
 * Gibt ein "Protected"-Dialog aus
 *
 * @author		Joachim Ruf
 * @copyright	Copyright (c) 2003-2013 Loresoft Software (http://www.loresoft.de)
 * @license		http://yapary.loresoft.de/lizenzbedingungen     New BSD License
 *
 * */


Class Yapary_Form_NotificationProtected Implements Yapary_Form_INotification
{
	private $title = 'Zugriff verboten';
	private $desc  =  NULL;

    function __construct ( $_desc = NULL, $_title = NULL )
	{
		if( $_desc != NULL ) {
		    $this->desc = "<h3><b>$_desc</b></h3>";
		}
		if ($_title != NULL) {
		    $this->title = $_title;
		}

	}

	/**
	 * Liefert die Daten als Array
	 * @return array
	 * */
	public function get ()
	{
	    return array('title' => $this->title,
	                 'desc'  => $this->desc,
	                 'css'   => 'protected');
	}
}


?>